<template>
  <div class="">
    testB
    <button @click="handler">向数组内追加数据</button>
  </div>
</template>

<script setup lang="ts">
// 我想在 b 组件内控制
import { listStore } from '@/stores/list_store'

const $store = listStore()

const handler = () => {
  $store.pushApi('小灰狼')
}

</script>

<style scoped lang="scss"></style>
